using UnityEngine;
using QFramework;

namespace GameJamLight
{
    public class PassDoor : LightGameController, IInteractiveItem
    {
        [SerializeField] private int NextLevelID;

        void IInteractiveItem.Trigger()
        {
            this.GetModel<IGameModel>().CurLevelID.Value = NextLevelID;
            this.SendCommand<LevelPassCommand>();
        }
    }
}